package com.example.forum.dao;

import com.example.forum.model.User;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {

    //插入用户
    int insert(User row);
    int insertSelective(User row);


    User selectByPrimaryKey(Long id);
    //mapper接口和xml里的方法一一对应
    //.mxl文件与mapper接口类的数量未必对应
    User selectByUserName(String username);

    int updateByPrimaryKeySelective(User row);

    int updateByPrimaryKey(User row);



}